import ajax from '@/utils/request'
const BASE_URL = 'http://192.168.3.9:38080/jeecg-boot'

// get - 首页 - 接口
export const getHome = () => ajax('/home')

// post - 注册接口
export const imglistServ = (data) => ajax('/home/getHomePictureList', data, 'post')
export const pieChartAjax = (data) => ajax(BASE_URL + '/ageGroup/brokenLine', data, 'get') ////调用年龄分组统计图
export const brokenLineAjax = (data) => ajax(BASE_URL + '/indicatorsAlarm/brokenLine', data, 'get') // 掉用告警趋势统计图
export const personnelAjax = (data) => ajax(BASE_URL + '/indicatorsAlarm/userInfo', data, 'get') // 调用警告人员数据
export const posthouseAjax = (data) => ajax(BASE_URL + '/jiGouStatistics/brokenLine', data, 'get') //驿站人数统计折现图
export const posthouseListAjax = (data) => ajax(BASE_URL + '/jiGouStatistics/list', data, 'get') // 驿站分布情况列表
export const mapPosthouseAjax = (data) => ajax(BASE_URL + '/jiGouStatistics/disDetails', data, 'get') // 地图显示驿站覆盖物
export const mapPersonnelAjax = (data) => ajax(BASE_URL + '/indicatorsAlarm/disDetails', data, 'get') // 地图人员覆盖物
export const informationAjax = (data) => ajax(BASE_URL + '/org.jeecg.modules.gkak.primary/gkakRJianKangXinXi/getBySysUserId', data, 'get') //人员基本信息
export const healthReport = (data) => ajax(BASE_URL + '/healthReportController/getDataCollectionByAiWearAndJkid', data, 'get') //健康监测历史数据
export const roomAjax = (data) => ajax(BASE_URL + '/org.jeecg.modules.gkak.primary/gkakRJianKangXinXi/getPersonsByRoomId', data, 'get') //房間信息
export const abnormal = (data) => ajax(BASE_URL + '/healthReportController/getAbnormalByUserId', data, 'get') //查询单人异常信息
export const minzu = (data) => ajax(BASE_URL + '/gkakSysDictController/getMinZuDictList', data, 'get') //数据字典民族
export const xueli = (data) => ajax(BASE_URL + '/gkakSysDictController/getXueLiDictList', data, 'get') //数据字典学历
export const zongjiao = (data) => ajax(BASE_URL + '/gkakSysDictController/getZongJiaoDictList', data, 'get') //数据字典宗教
export const administrativeRegion = (data) => ajax(BASE_URL + '/gkakKongJianController/getXingZhengQvByPid', data, 'get') //行政区
export const community = (data) => ajax(BASE_URL + '/jeecg-boot/gkakKongJianController/querySheQvByXingZhengQv', data, 'get') //社区id查房间